package cn.swenty.backstage.sso.client.shiro.realm;

import org.apache.shiro.authc.AuthenticationToken;

/** 
* @ClassName: OAuth2Token 
* @Description: TODO(获取TOKEN的code) 
* @author sunyang
* @date 2018年1月26日 下午2:08:42 
*  
*/
public class OAuth2Token implements AuthenticationToken {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public OAuth2Token(String authCode) {
        this.authCode = authCode;
    }
    private String authCode;
    private String principal;

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public Object getCredentials() {
        return authCode;
    }
}
